﻿using Entity.Models.Entities;
using System;
using System.Collections.Generic;
using System.Text;

namespace Entity.Models.dto
{
    /// <summary>
    /// 角色 DTO类
    /// </summary>
    public class RoleInfoDTO
    {
        /// <summary>
        /// id
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string _roleName { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string _description { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public string _createTime { get; set; }

        public RoleInfoDTO(RoleInfo roleInfo)
        {
            Id = roleInfo.Id;
            _roleName = roleInfo.RoleName;
            _description = roleInfo.Description;
            _createTime = roleInfo.CreateTime.ToString("yyyy-MM-dd HH:mm:ss");
        }

        public RoleInfoDTO()
        {
        }

    }
}
